package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "shop_product_value")
public class ShopProductValue {
    @Id
    @Column(name = "shop_product_value_id")
    private Integer shopProductValueId;

    /**
     * 产品id
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * 属性值id
     */
    @Column(name = "attr_value_id")
    private Integer attrValueId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 状态 0:未启用  1:已启用
     */
    private Integer status;

    /**
     * @return shop_product_value_id
     */
    public Integer getShopProductValueId() {
        return shopProductValueId;
    }

    /**
     * @param shopProductValueId
     */
    public void setShopProductValueId(Integer shopProductValueId) {
        this.shopProductValueId = shopProductValueId;
    }

    /**
     * 获取产品id
     *
     * @return product_id - 产品id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * 设置产品id
     *
     * @param productId 产品id
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * 获取属性值id
     *
     * @return attr_value_id - 属性值id
     */
    public Integer getAttrValueId() {
        return attrValueId;
    }

    /**
     * 设置属性值id
     *
     * @param attrValueId 属性值id
     */
    public void setAttrValueId(Integer attrValueId) {
        this.attrValueId = attrValueId;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取状态 0:未启用  1:已启用
     *
     * @return status - 状态 0:未启用  1:已启用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置状态 0:未启用  1:已启用
     *
     * @param status 状态 0:未启用  1:已启用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}